﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Modulos_ModuloPrestamo_VistaControl_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void cambiaLabel(object sender, EventArgs e)
    {
        LabelNoCarta.Text = GridView1.SelectedValue.ToString();
        ButtonConfirmar.Enabled = true;
    }
    protected void ButtonConfirmar_Click(object sender, EventArgs e)
    {
        if (string.Compare(LabelNoCarta.Text, "(Seleccione una carta)") == 0)
        {
            // no se puede confirmar
        }
        else
        {
            //si se puede confirmar
            CartaBLL cartabll = new CartaBLL();
            cartabll.confirm(int.Parse(VariablesGlobales.GetInstance().getUsuario()),int.Parse(LabelNoCarta.Text));
        }
    }
}
